#' @param impurity Criterion used for information gain calculation
#'   One of 'auto', 'gini', 'entropy', or 'variance'. 'auto' defaults to
#'   'gini' for classification and 'variance' for regression.
